#include <stdio.h>
#include <wiringPi.h>

#define LED1_PIN 21
#define LED2_PIN 22
#define LED3_PIN 23
#define LED4_PIN 24
#define FIRE_PIN 25
typedef struct ContrlDevices
{
		char devicesName[128];
		int status;
	
		int (*open)();
		int (*close)();
		int (*deviceInit)();
	
		int	(*readStatus)();
		int (*changeStatus)(int status);
	
		struct ContrlDevices *next;
		
}contrl;

contrl *addBathroomLightToDeviceLink(contrl *phead);
contrl *addDiningroomLightToDeviceLink(contrl *phead);
contrl *addSecondFloorLightToDeviceLink(contrl *phead);
contrl *addDrawingroomLightToDeviceLink(contrl *phead);
contrl *addDeviceFireToDeviceLink(contrl *phead);